package com.springmvc.web.demo.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * </p>
 *
 * @author WangRuChao
 * @since 2018-01-11
 */
@TableName("ph_flup_field")
public class PhFlupField extends Model<PhFlupField> {

	private static final long serialVersionUID = 1L;

	/**
	 * 字段
	 */
	@TableId(value = "field", type = IdType.AUTO)
	private Long field;
	/**
	 * 父id
	 */
	private Long pfield;
	/**
	 * 字段名字
	 */
	private String name;
	/**
	 * 字段值
	 */
	private String value;
	/**
	 * 备注
	 */
	private String memo;
	/**
	 * 创建时间
	 */
	private Date createtime;
	/**
	 * 修改时间
	 */
	private Date updatetime;
	/**
	 * 删除状态 1未删除 2已删除
	 */
	private Integer del;


	public Long getField() {
		return field;
	}

	public void setField(Long field) {
		this.field = field;
	}

	public Long getPfield() {
		return pfield;
	}

	public void setPfield(Long pfield) {
		this.pfield = pfield;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public Integer getDel() {
		return del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}

	@Override
	protected Serializable pkVal() {
		return this.field;
	}

	@Override
	public String toString() {
		return "PhFlupField{" +
				"field=" + field +
				", pfield=" + pfield +
				", name=" + name +
				", value=" + value +
				", memo=" + memo +
				", createtime=" + createtime +
				", updatetime=" + updatetime +
				", del=" + del +
				"}";
	}
}
